<template>
  <el-dialog v-if="visible" :title="info.title" :visible.sync="visible" append-to-body center width="460px" :before-close="handleCancel">
    <el-form ref="formDate" label-suffix=":" label-width="100px" :rules="rules" :model="form">
      <el-row>
        <el-col :span="24">
          <el-form-item style="width: 100%" label="转签人" prop="lf_su_id">
            <StaffSelect v-model="form.lf_su_id" />
          </el-form-item>
        </el-col>
      </el-row>
    </el-form>
    <el-row>
      <el-col :span="24">
        <div class="fr mt10">
          <el-button size="small" @click="handleCancel()">取 消</el-button>
          <el-button type="primary" size="small" @click="handleEdit()">转 签</el-button>
        </div>
      </el-col>
    </el-row>
  </el-dialog>
</template>

<script>
import { lf } from '@/api/approval/approve'
import StaffSelect from '@/myComponents/StaffSelect'
import form from '@/utils/form'

export default {
  components: { StaffSelect },
  extends: form,
  props: {
    reqUpd: {
      default: lf,
      type: Function
    }
  },
  data() {
    return {
      rules: {
        lf_su_id: [{ required: true, trigger: 'blur', message: '请选择转签人' }]
      },
    }
  },
  watch: {
    visible(val) {
      if (val) {
        this.form = this.info.edit
      }
    }
  },
  mounted() {
  },
  methods: {
  }
}
</script>

<style scoped>
</style>>
